<?php


namespace app\Enums;


class WebsocketChannel
{
    const NO_CONNECTION = 1;
    const UNKNOWN_DEVICE = 2;




    const description = [
        self::NO_CONNECTION=>"没有获取到 connection",
        self::UNKNOWN_DEVICE=>"未知设备",
    ];

    public static function getDescription($value): string
    {
        return self::description[$value] ?? "";
    }

}